//
//  ViewController.m
//  test
//
//  Created by tianlong on 2019/3/27.
//  Copyright © 2019年 tianlong. All rights reserved.
//

#import "ViewController.h"
#import "WXLiveTextView.h"
#import "Masonry.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    WXLiveTextView *textView = [[WXLiveTextView alloc] init];
    textView.backgroundColor = [UIColor greenColor];
    textView.placeholder = @"请输入内容";
    [self.view addSubview:textView];
    [textView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.offset(10);
        make.width.offset(200);
        make.height.offset(30);
        make.top.offset(200);
    }];
    
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    [self.view endEditing:YES];
}


@end
